﻿#ifndef CONVIEW_H
#define CONVIEW_H

#include <QWidget>

namespace Ui {
class ConView;
}

class ConView : public QWidget
{
    Q_OBJECT

public:
    explicit ConView(QWidget *parent = nullptr);
    ~ConView();
    static ConView* Instance();
    QString getIp();
    unsigned int getPort();
signals:
    void sig_connectstart(QString addr,unsigned int port);
    void sig_connected();
    void sig_disconnected();
private slots:
    void slot_connecttcp();
    void slot_disconnected();


    void on_pushButton_connect_clicked();

private:
    Ui::ConView *ui;
    static ConView* _controlplat;
    QString _ip;
    unsigned int _port;

};

#endif // CONVIEW_H
